bitkeeper revision 1.1277.1.4 (425d4619QQPyUhs4FSWUJMPPTkuiVg)
authordjm@sportsman.spdomain <djm@sportsman.spdomain>
Wed, 13 Apr 2005 16:17:29 +0000 (16:17 +0000)
committerdjm@sportsman.spdomain <djm@sportsman.spdomain>
Wed, 13 Apr 2005 16:17:29 +0000 (16:17 +0000)
mkbuildtree, Rules.mk, Makefile:
  minor makefile cleanups

xen/arch/ia64/Makefile
xen/arch/ia64/Rules.mk
xen/arch/ia64/tools/mkbuildtree

index a6becc9ac5f437dabedd381815f68587acba7b5f..b8f1fdf161127a2e1b32153d06301adace41e257 100644 (file)
@@ -18,19 +18,11 @@ OBJS := $(subst $(TARGET_ARCH)/asm-offsets.o,,$(OBJS))
 # remove following line if not privifying in memory
 # OBJS += privify.o
 
-# What happens here? We link monitor object files together, starting
-# at MONITOR_BASE (a very high address). But bootloader cannot put
-# things there, so we initially load at LOAD_BASE. A hacky little
-# tool called `elf-reloc' is used to modify segment offsets from
-# MONITOR_BASE-relative to LOAD_BASE-relative.
-# (NB. Linux gets round this by turning its image into raw binary, then 
-# wrapping that with a low-memory bootstrapper.)
 default: $(OBJS) head.o ia64lib.o xen.lds.s
        $(LD) -r -o arch.o $(OBJS) ia64lib.o
        $(LD) $(LDFLAGS) -T $(BASEDIR)/arch/$(TARGET_ARCH)/xen.lds.s -N \
                -Map map.out head.o $(ALL_OBJS) -o $(TARGET)-syms
        $(OBJCOPY) -R .note -R .comment -S $(TARGET)-syms $(TARGET)
-#      $(BASEDIR)/tools/elf-reloc $(MONITOR_BASE) $(LOAD_BASE) $(TARGET)
 
 asm-offsets.s: asm-offsets.c
        $(CC) $(CFLAGS) -S -o $@ $<
@@ -45,7 +37,7 @@ ia64lib.o:
 
 clean:
        rm -f *.o *~ core  xen.lds.s $(BASEDIR)/include/asm-ia64/.offsets.h.stamp
-       $(MAKE) -C lib clean
+       rm -f lib/*.o
 
 # setup.o contains bits of compile.h so it must be blown away
 delete-unfresh-files:
index 3883eeee63c61da9758a97aab6efec07c817c1bb..d4ac827b9a728665663e307625a42a4419164630 100644 (file)
@@ -1,33 +1,20 @@
 ########################################
-# x86-specific definitions
+# ia64-specific definitions
 
-ifeq ($(COMPILE_ARCH),$(TARGET_ARCH))
-OBJCOPY = objcopy
-endif
 ifneq ($(COMPILE_ARCH),$(TARGET_ARCH))
-CC = /usr/local/sp_env/v2.2.5/i686/bin/ia64-unknown-linux-gcc
-LD = /usr/local/sp_env/v2.2.5/i686/bin/ia64-unknown-linux-ld
-OBJCOPY = /usr/local/sp_env/v2.2/i686/bin/ia64-unknown-linux-objcopy
+CROSS_COMPILE ?= /usr/local/sp_env/v2.2.5/i686/bin/ia64-unknown-linux-
 endif
-HOSTCC := gcc
-#LD := ld
-# Linker should relocate monitor to this address
-MONITOR_BASE := 0xFC500000
-# Bootloader should load monitor to this real address
-LOAD_BASE    := 0x00100000
 AFLAGS  += -D__ASSEMBLY__
 CPPFLAGS  += -I$(BASEDIR)/include -I$(BASEDIR)/include/asm-ia64
 CFLAGS  := -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
 #CFLAGS  += -O3                # -O3 over-inlines making debugging tough!
 CFLAGS  += -O2         # but no optimization causes compile errors!
-CFLAGS  += -iwithprefix include -Wall -DMONITOR_BASE=$(MONITOR_BASE)
+#CFLAGS  += -iwithprefix include -Wall -DMONITOR_BASE=$(MONITOR_BASE)
+CFLAGS  += -iwithprefix include -Wall
 CFLAGS  += -fomit-frame-pointer -I$(BASEDIR)/include -D__KERNEL__
 CFLAGS  += -I$(BASEDIR)/include/asm-ia64
 CFLAGS  += -Wno-pointer-arith -Wredundant-decls
 CFLAGS  += -DIA64 -DXEN -DLINUX_2_6
 CFLAGS += -ffixed-r13 -mfixed-range=f12-f15,f32-f127
 CFLAGS += -w -g
-#TARGET_CPU := i686
-#CFLAGS += -march=$(TARGET_CPU)
-#LDARCHFLAGS := --oformat elf32-i386 
 LDFLAGS := -g
index d343b9636fb4e64c202a70990e7b6929d10b4e6b..55dd82066d0b6f867e1c0f8fcaf20159cf935a6e 100644 (file)
@@ -34,7 +34,6 @@ null ()
 # ensure linux directory is set up
 if [ ! -d $LINUX ]; then
        echo "ERROR: $LINUX directory doesn't exist"
-       echo "(don't forget to apply the -ia64 patch to it too)"
        exit
 fi